<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var a = 0;
			
			var tamp = setInterval(function(){
				a++;
				if (a > 5){
					// clearInterval(tamp);
					clearInterval(1);
				}
				console.log(a);
			}, 1000);
			
		</script>
	</body>
</html>
